package com.yjy.shmily;

/**
 * author : YangJinyang
 * create : 2019-10-29 16:53
 * description :
 */
public class LoginBean {


    /**
     * code : 0
     * message : string
     * result : {"additionalProp1":{},"additionalProp2":{},"additionalProp3":{}}
     * success : true
     * timestamp : 0
     */

    private int code;
    private String message;
    private boolean success;
    private int timestamp;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message == null ? "" : message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public int getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(int timestamp) {
        this.timestamp = timestamp;
    }

    @Override
    public String toString() {
        return "LoginBean{" +
                "code=" + code +
                ", message='" + message + '\'' +
                ", success=" + success +
                ", timestamp=" + timestamp +
                '}';
    }
}
